package cn.com.huzo.repository.master.impl;

import cn.com.huzo.model.entities.master.VersionTypeEntity;
import huzofw.repository.impl.GenericRepositoryImpl;
import huzofw.repository.impl.MyBatisDaoUtils;
import cn.com.huzo.repository.master.VersionTypeRepository;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * 版本修订类型数据访问对象。
 *
 * @author 吴旭
 */
@Repository("VersionTypeRepository")
public class VersionTypeRepositoryImpl extends GenericRepositoryImpl<VersionTypeEntity, Long>
        implements VersionTypeRepository {

    private final String namespace = "cn.com.huzo.repository.master.VersionTypeRepository";

    /**
     * 构造函数,设置the instance to VersionTypeRepositoryImpl.class.
     */
    public VersionTypeRepositoryImpl() {
        super(VersionTypeEntity.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<VersionTypeEntity> fetchAll() {
        return getSqlSession().selectList(MyBatisDaoUtils.getMapperQueryId(
                namespace, "fetchAll"));
    }
}
